package behavioral_pattern.Interpreter_pattern;

public class DistanceNode extends AbstractMode{
    private String distance;

    public DistanceNode(String distance) {
        this.distance = distance;
    }

    @Override
    public String interpret() {

        return distance;
    }
}
